You can use code similar to the following to test the connection to the database or use PETestNthTableConnectivity to make certain it is ready for a log on whenever you print a report:
LOCAL TableNumber
TableNumber = 0
&& Examine the first table
IF PETestNthTableConnectivity(Job, TableNumber) = .F.
&& Handle Error
ENDIF
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |